﻿CREATE TABLE [dbo].[EducationKnowlg] (
    [Id]          INT            IDENTITY (1, 1) NOT NULL,
    [HospId]      INT            NOT NULL,
    [TypeId]      INT            NOT NULL,
    [Title]       NVARCHAR (500) NOT NULL,
    [Content]     NTEXT          NULL,
    [ImgUrl]      NVARCHAR (500) NULL,
    [Sort]        INT            NULL,
    [RecStatus]   INT            CONSTRAINT [DF__Education__RecSt__690797E6] DEFAULT ((1)) NOT NULL,
    [RecCreateDt] DATETIME       NOT NULL,
    [RecUpdateDt] DATETIME       NULL,
    [RecDeleteDt] DATETIME       NULL,
    CONSTRAINT [PK__Educatio__3214EC07671F4F74] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'主键', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'Id';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'所属医院', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'HospId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'类型主键', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'TypeId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'标题', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'Title';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'内容', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'Content';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'图片', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'ImgUrl';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'序号', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'Sort';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'记录状态', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'EducationKnowlg', @level2type = N'COLUMN', @level2name = N'RecStatus';

